﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Title = "关于界面";//相当于About.cshtml中的@{ViewBag.Title = "About";}，把那边的注释了，写到这边
            ViewBag.Message = "Your application description page.";

            //在写一个，直接去另外一边看
            ViewBag.A = "烟淡淡兮轻云";
            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult B()
        {
            return View("About");
        }
    }
}